package com.zcc.thread;

public class Turtle implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            if (i%10==0){
                System.out.println(Thread.currentThread().getName()+"跑了"+i+"米");
            }
        }
        System.out.println("乌龟到了终点");
    }
}
